// 品牌管理接口
import request, { type PageData, type ResponseData } from "../request";

export interface Trademark {
    id?: number,
    logoUrl?: string,
    tmName?: string,
}
// 品牌列表
export const reqTrademarks = (pageNo: number = 1, pageSize: number = 10) => request.get<ResponseData<PageData<Trademark[]>>>(`/admin/product/baseTrademark/${pageNo}/${pageSize}`)

// 新增品牌
export const reqInsertTrademark = (trademark: Trademark) => request.post<ResponseData<string>>('/admin/product/baseTrademark/save', trademark)

// 修改品牌
export const reqUpdateTrademark = (trademark: Trademark) => request.put<ResponseData<string>>('/admin/product/baseTrademark/update', trademark)


// 删除品牌
export const reqDelTrademark = (id: number) => request.delete<ResponseData<string>>(`/admin/product/baseTrademark/remove/${id}`)
